package com.keyin.android.net;


import android.content.Context;

public abstract class Callback {
	
	public abstract Context getContext();

	/**
	 * get url.
	 * @return
	 */
	public abstract String getUrl();
	
	void recieve(byte[] data){
		onRecieve(data);
	}
	
	void exception(Exception e){
		onException(e);
	}
	
	public abstract void onException(Exception e);
	public abstract void onRecieve(byte[] data);
	
	public abstract Param getHeader();
	
	public abstract byte[] getPostParam();
}
